//
//  RZAVPlayer.h
//  RZIM
//
//  Created by reyzhang on 2021/8/26.
//  视频播放

#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>


NS_ASSUME_NONNULL_BEGIN

@interface RZAVPlayer : UIView
- (instancetype)initWithFrame:(CGRect)frame withShowInView:(UIView *)bgView url:(NSURL *)url;
- (void)stopPlayer;

@property (nonatomic,weak)   AVPlayerLayer *playerLayer;

@property (copy, nonatomic)  NSURL *videoUrl;

- (void)startAnimation;

- (void)stopAnimation;
@end

NS_ASSUME_NONNULL_END
